<!-- 下拉加载提示 -->
<div class="ui-loading-wrap" style="display:none;">
    <p>下拉加载</p>
    <i class="ui-loading" style="display:none;"></i>
</div>



//flag是否是第一次  isRefresh是否清空之前的
function initReq(flag,isRefresh){
        
    $(window).unbind('scroll');
    if(flag){
        params.page = pageNum;
        _dealLoading('loading');
    }else{
        $('.ui-loading-block').show();
    }       
    $.ajax({
        url:'../infomation',
        type:'GET',
        dataType: 'json',
        data:params,
        success:function(data){
            var dealObj = data.content||[]; 
            if(!flag){
                $('.ui-loading-block').hide();
            }
            _dealList(dealObj,isRefresh);
            if(data.totalPages<2){
                $('.ui-loading-wrap').hide();
            }else{
                if(data.totalPages == data.number+1){
                    _dealLoading('end');
                }else{
                    _dealLoading('start');
                    $(window).bind('scroll',function () { dealPullReq(); });
                }
                
            }
        },
        error:function(xhr,type){
            var res = xhr&&eval('('+xhr.response+')');
            var msg = res.message?res.message.replace(/([^\u4e00-\u9fa5]+)/g,''):'未知错误';
            alert(msg);
        }
    });
}
function dealPullReq(){
    var scrollTop = document.body.scrollTop;//滚轮高度
    var windowHeight = $(window).height();  //浏览器显示区域高度
    var wholeHeight=document.body.scrollHeight;
    if (scrollTop + windowHeight == wholeHeight) {
        //加载条
        pageNum += 1;                   
        initReq(true);  
    }
}
function _dealLoading(type){
    $('.ui-loading-wrap').show();
    if(type=='start'){
        $('.ui-loading-wrap p').text('下拉刷新');
        $('.ui-loading-wrap .ui-loading').hide();
    }else if(type=="end"){
        $('.ui-loading-wrap p').text('亲！已经到底了');
        //$('.ui-loading-wrap p').addClass('nomore');
        $('.ui-loading-wrap .ui-loading').hide();
    }else if(type="loading"){
        $('.ui-loading-wrap p').text('正在加载中。。。');
        $('.ui-loading-wrap .ui-loading').show();
        
    }   
}









===============================
select {
  /*Chrome和Firefox里面的边框是不一样的，所以复写了一下*/
  border: solid 1px #000;

  /*很关键：将默认的select选择框样式清除*/
  appearance:none;
  -moz-appearance:none;
  -webkit-appearance:none;

  /*在选择框的最右侧中间显示小箭头图片*/
  background: url("http://ourjs.github.io/static/2015/arrow.png") no-repeat scroll right center transparent;


  /*为下拉小箭头留出一点位置，避免被文字覆盖*/
  padding-right: 14px;
}


/*清除ie的默认选择框样式清除，隐藏下拉箭头*/
select::-ms-expand { display: none; }